package flybrid;

import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;

public class Ground {
    BufferedImage image;
    int x,y;
    int whdth,height;

    public Ground() throws Exception{
        image= ImageIO.read(getClass().getResource("ground.png"));
        whdth=image.getWidth();
        height=image.getHeight();
        x=0;
        y=500;
    }
    public void step(){
        x--;
        if(x==-109){
            x=0;
        }
    }
}
